package com.era.act.usr;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class UserRemoveAction extends ActionSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String usrLogin;
	
	public String getUsrLogin() {
		return usrLogin;
	}

	public void setUsrLogin(String usrLogin) {
		this.usrLogin = usrLogin;
	}

	public String execute(){
		HttpSession session = ServletActionContext.getRequest()
				.getSession();
		System.out.println(usrLogin);
		session.removeAttribute("usrLogin");
		return SUCCESS;
		
	}
	
}
